package com.earnings.okhttputils.utils.utils;

import android.content.Context;

import com.earnings.okhttputils.utils.User;

/**
 * Created by HOHO on 2017/5/12.
 */


public class CommonUtil {
    private  static  APPUserData<User> appUser ;

    public static void initUser(Context context) {
        appUser = new APPUserData<User>(context);
    }


    public static User getUser() {
        return appUser.getModel(new User());
    }

    public static void commitUser(User User) {
        appUser.doSave(User);
    }


}
